package com.miyu.system.pojo.system;


import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 自定义表查询;
 * @author : miyu
 * @date : 2023-7-22
 */
@ApiModel(value = "自定义表查询",description = "")
@Data
@Entity
@Table(name="sys_table")
@TableComment("自定义表查询")
public class SysTable implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @TableGenerator(name="id_gen",  table="sys_id_generator", pkColumnName="table_name", pkColumnValue="sys_table", valueColumnName="id_value", initialValue=1, allocationSize=1)
    @GeneratedValue(strategy=GenerationType.TABLE, generator="id_gen")
    @ApiModelProperty(value="主键",notes = "")
    @ColumnComment("主键")
    @Column(name = "table_id", nullable = false,length=10 )
    private Integer tableId ;
    /** 表名 */
    @ApiModelProperty(value="表名",notes = "")
    @ColumnComment("表名")
    @Column(name = "table_name", nullable = true,length=90 )
    private String tableName ;
    /** 显示名称 */
    @ApiModelProperty(value="显示名称",notes = "")
    @ColumnComment("显示名称")
    @Column(name = "show_name", nullable = true,length=90 )
    private String showName ;
    /** 说明 */
    @ApiModelProperty(value="说明",notes = "")
    @ColumnComment("说明")
    @Column(name = "remark", nullable = true,length=100 )
    private String remark ;
}